<template>
  <div class="noticemanage">
    <LazyLoadTab v-model="activeName" :tabMenus="menus" :tab-click="tabClick"></LazyLoadTab>
  </div>
</template>

<script>
export default {
  name: 'noticemanage',
  props: {
    orderNo: {
      type: String
    },
    userList: {
      type: Array
    }
  },
  data() {
    return {
      activeName: '收款',

      menus: [
        {
          title: '收款',
          path: 'part/report/salessettlement/partBillDetail',
          params: { roNo: this.orderNo, type: String },
          on: {
            close: this.close
          }
        },
        {
          title: '发票',
          path: 'part/report/salessettlement/invoiceDetail',
          params: { roNo: this.orderNo, type: String, userList: this.userList },
          on: {
            close: this.close
          }
        }
      ]
    };
  },
  created() {
    // console.log(2, this.orderNo);
  },
  methods: {
    tabClick(data) {
      console.log(data, 'activeName');
    },
    close() {
      this.$emit('close');
    }
  }
};
</script>

<style lang="less" scoped></style>
